/// @description player
//作者:蟋蟀蝈蝈蛐蛐 QQ:1126390395

//方向定义
enum _DIR{
	right = 0,
	up,
	left,
	down
};

//相关精灵
spr_push[_DIR.up] = sPlayer_pushing_up;
spr_push[_DIR.down] = sPlayer_pushing_down;
spr_push[_DIR.left] = sPlayer_pushing_left;
spr_push[_DIR.right] = sPlayer_pushing_right;

spr_walk[_DIR.up] = sPlayer_up;
spr_walk[_DIR.down] = sPlayer_down;
spr_walk[_DIR.left] = sPlayer_left;
spr_walk[_DIR.right] = sPlayer_right;


//键盘控制
key_map[_DIR.up] = false;
key_map[_DIR.down] = false;
key_map[_DIR.left] = false;
key_map[_DIR.right] = false;

//人物方向
dir = _DIR.up;

//人物运动
run = false;

//人物推
push = false;

//当前推的box
push_box = false;
push_bbox = false;

//移动速度
sp = 4;

depth = -10;

